package com.itheima.day08.myGenerictity.test4;

public class Test {
    public static void main(String[] args) {
        InterImpl1<String> ii1 = new InterImpl1();
        ii1.show("丽丽和美美一直在追求我，我觉得她们太肤浅了");

        InterImple2 ii2 = new InterImple2();
        ii2.show(Integer.valueOf(5555));
    }
}

interface Inter<E> {
    void show(E e);
}

class InterImpl1<E> implements Inter<E> {

    @Override
    public void show(E e) {
        System.out.println(e);
    }
}

class InterImple2 implements Inter<Integer> {

    @Override
    public void show(Integer integer) {
        System.out.println(integer);
    }
}
